import { request } from "../request"
// 车主列表
export const carOwnerList = (data) => {
  return request({
    url: 'carOwner/carOwnerList',
    method: 'POST',
    data
  })
}
// 所有列表
export const carOwnerListAll = (data) => {
  return request({
    url: 'carOwner/carOwnerListAll',
    method: 'POST',
    data
  })
}

// 添加车主信息
export const carOwnerAdd = (data) => {
  return request({
    url: 'carOwner/carOwnerAdd',
    method: 'POST',
    data
  })
}
// 删除
export const carOwnerDelete = (data) => {
  return request({
    url: 'carOwner/carOwnerDelete',
    method: 'POST',
    data
  })
}
// 修改
export const carOwnerchange = (data) => {
  return request({
    url: 'carOwner/carOwnerchange',
    method: 'POST',
    data
  })
}
// 车主搜索
export const carOwnerSerach = (data) => {
  return request({
    url: 'carOwner/carOwnerSerach',
    method: 'POST',
    data
  })
}
// 车主导出信息
export const carOwnerCreateExcel = (data) => {
  return request({
    url: 'carOwner/carOwnerCreateExcel',
    method: 'POST',
    data,
    responseType: "blob",
  })
}
// 车主质保查询
export const carOwnerQualityList = (data) => {
  return request({
    url: 'carOwner/carOwnerQualityList',
    method: 'POST',
    data,
  })
}
// 车主质保导出
export const carOwnerQualityCreateExcel = (data) => {
  return request({
    url: 'carOwner/carOwnerQualityCreateExcel',
    method: 'POST',
    data,
    responseType: "blob",
  })
}
// 条件车主质保查询
export const carOwnerQualitySerach = (data) => {
  return request({
    url: 'carOwner/carOwnerQualitySerach',
    method: 'POST',
    data,
  })
}
// 获取车主保险列表

export const carOwnerInsuranceList = (data) => {
  return request({
    url: 'carOwner/carOwnerInsuranceList',
    method: 'POST',
    data,
  })
}
// 添加
export const carOwnerInsuranceAdd = (data) => {
  return request({
    url: 'carOwner/carOwnerInsuranceAdd',
    method: 'POST',
    data,
  })
}
// 修改保险
export const carOwnerInsuranceChange = (data) => {
  return request({
    url: 'carOwner/carOwnerInsuranceChange',
    method: 'POST',
    data,
  })
}
// 删除保险
export const carOwnerInsuranceDelete = (data) => {
  return request({
    url: 'carOwner/carOwnerInsuranceDelete',
    method: 'POST',
    data,
  })
}
// 删除保险
export const carOwnerInsuranceCreateExcel = (data) => {
  return request({
    url: 'carOwner/carOwnerInsuranceCreateExcel',
    method: 'POST',
    data,
    responseType: "blob",
  })
}
// 保险查询
export const carOwnerInsuranceSerach = (data) => {
  return request({
    url: 'carOwner/carOwnerInsuranceSerach',
    method: 'POST',
    data,
  })
}